package cn.lanca.gof0_5._05builder.case2;

import com.example.demo.gof0_5._05builder.case2.builder.Decorator;
import com.example.demo.gof0_5._05builder.case2.director.ProjectManager;
import com.example.demo.gof0_5._05builder.case2.product.Parlour;
import com.example.demo.gof0_5._05builder.case2.util.ReadXML;

/**
 * @author meihongliang
 * @since 2020/8/7 17:15
 */
public class ParlourDecorator {
    public static void main(String[] args) {
        try {
            Decorator d;
            d = (Decorator) ReadXML.getObject();
            ProjectManager m = new ProjectManager(d);
            Parlour p = m.decorate();
            p.show();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
